﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CSImport.WordPress
{
    class Category
    {
        public String nickName { get; set; }
        public String parentName { get; set; }
        public String name { get; set; }


        public override String ToString()
        {           
            StringBuilder strBldr = new StringBuilder();
            strBldr.Append("name: " + name);
            strBldr.Append(", nickName: " + nickName);
            strBldr.Append(", parentName: " + parentName);
            return strBldr.ToString();
        }

        //public override bool Equals(object obj)
        //{
        //    if (obj is Category)
        //    {
        //        Category comp = (Category)obj;
        //        return comp.name.Equals(name)
        //            && comp.nickName.Equals(nickName)
        //            && comp.parentName.Equals(parentName);
        //    }
        //    else
        //    {
        //        return false;
        //    }
        //}
    }
}
